<html>
<head>
    <meta charset='utf-8' />
</head>
<body>

<?php

    error_reporting(E_ERROR);
    session_start();
    if(! $_SESSION['isLogin'] ) {
        header("Location: index.php");
        return;
    }
    echo "你现在有". $_SESSION['money'] ."块钱";
?><br>
    <a href='spend.php?n=10'>花10块钱</a>
<a href='exit.php' style='margin-left:100px;'>退出</a>
</body>